From 1836820ff66d474e5326b99213b2cf56ab611df8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Wed, 4 Mar 2020 23:56:37 +0100 Subject: idk --- js/meals.js | 11 +++++++++++ pages/meals.html | 51 ++++++++++++++++++++++++++++++++++++++++++++++++++- sw.js | 2 +- 3 files changed, 62 insertions(+), 2 deletions(-) diff --git a/js/meals.js b/js/meals.js index f283913..097d799 100644 --- a/js/meals.js +++ b/js/meals.js @@ -323,4 +323,15 @@ document.addEventListener("DOMContentLoaded", async () => { // Setup side modal const modals = document.querySelectorAll('.side-modal'); M.Sidenav.init(modals, { edge: 'left', draggable: false }); + var elemsx = document.querySelectorAll('select'); + var instancesx = M.FormSelect.init(elemsx); + var datepickerelems = document.querySelectorAll('.datepicker'); + var today = new Date(); + var datepickerinstances = M.Datepicker.init(datepickerelems, { + firstDay: 1, + minDate: today, + showDaysInNextAndPreviousMonths: true, + showClearBtn: true, + format: "dddd, dd. mmmm yyyy" + }); }); diff --git a/pages/meals.html b/pages/meals.html index 9e80ec0..36ba07b 100644 --- a/pages/meals.html +++ b/pages/meals.html @@ -135,7 +135,56 @@ - + +

+ + + Usage: + + Click on a date to open the collapsible menu with choices and click on a specific meal to select it. Reload the meals when you're done and check the entries. +
+ + Note: + + App was not tested with lunches in mind. Meals probably won't work with lunches and having a lunch subscription may even break its functionality. +
+ + Note: + + If a meal is not present in the Meals collapsible field, this does not necessarily mean it does not exist. Meals that haven't been altered by you or are unchangable + (read-only) are not shown for clarity. +
+ + Note: + + You are welcome to contribute to the LopolisAPI project source (py) and add features, such as checkouts. +
+

+ diff --git a/sw.js b/sw.js index 861ba19..2feb9f2 100644 --- a/sw.js +++ b/sw.js @@ -1,5 +1,5 @@ // Change version to cause cache refresh -const static_cache_name = "site-static-v1.0.11.2"; +const static_cache_name = "site-static-v1.0.11.3"; // Tukej ne met notr directory namov, samo imena fajlov, // ker v primeru index.html to prpele do double-cachinga, oz. do velik 404 -- cgit v1.2.3